/**
 * 以下路由需要登录后才可访问
 */
import Manage from '../views/Manage.vue'
import Slideshow from '@/views/goods/Slideshow.vue'
import Hotproduct from '@/views/goods/Hotproduct'
import Newproduct from '@/views/goods/Newproduct'
import Recommend from '@/views/goods/Recommend'
import ShowList from '@/views/goods/ShowList'
import Member from '@/views/goods/Member'
import Order from '@/views/goods/Order'

import Classify from '@/views/user/Classify.vue'
import Psduser from '@/views/user/Psduser.vue'
import Introduction from '@/views/user/Introduction.vue'
import AddUser from '@/views/user/Add.vue'
import Dash from '@/views/user/Dash.vue'

export default 
// 嵌套的路由
 [
        // Dashboard
        {
            path: 'dashboard',
            redirect: { name: 'Dashboard' }
        },
        {
            path: 'dashboard/introduction',
            name: 'Introduction',
            component: Introduction,
        },
        {
            path: 'dashboard/dash',
            name: 'Dash',
            component: Dash,
        },
        {
            path: 'dashboard/add',
            name: 'AddUser',
            component: AddUser,
        },
        // /manage/homepage -> /manage/homepage/slideshow
        // 首页配置
        {
            path: 'homepage',
            redirect: { name: 'Homepage' }
        },
        {
            path: 'homepage/slideshow',
            name: 'Slideshow',
            component: Slideshow
        },
        {
            path: 'homepage/hotproduct',
            name: 'Hotproduct',
            component: Hotproduct
        },
        {
            path: 'homepage/newproduct',
            name: 'Newproduct',
            component: Newproduct
        },
        {
            path: 'homepage/recommend',
            name: 'Recommend',
            component: Recommend
        },

        //  模块管理
        {
            path: 'modulegl',
            redirect: { name: 'ModuleglList' }
        },
        {
            path: 'modulegl/classify',
            name: 'Classify',
            component: Classify
        },
        {
            path: 'modulegl/show',
            name: 'ShowList',
            component: ShowList
        },
        {
            path: 'modulegl/member',
            name: 'Member',
            component: Member
        },
        {
            path: 'modulegl/order',
            name: 'Order',
            component: Order
        },
        // 系统管理
        {
            path: 'system',
            redirect: { name: 'System' }
        },
        {
            path: 'system/psduser',
            name: 'PsdUser',
            component: Psduser
        },
    ]
